package cn.ibizlab.odoo.core.odoo_account.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_account.domain.Account_abstract_payment;
import cn.ibizlab.odoo.core.odoo_account.filter.Account_abstract_paymentSearchContext;

/**
 * 实体[Account_abstract_payment] 服务对象接口
 */

public interface IAccount_abstract_paymentService{
     void createBatch(List<Account_abstract_payment> account_abstract_payments, int batchSize) ;
     void updateBatch(List<Account_abstract_payment> account_abstract_payments, int batchSize) ;
     boolean update(Account_abstract_payment account_abstract_payment) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     Account_abstract_payment get(Integer id) ;
     Account_abstract_payment get(Account_abstract_payment account_abstract_payment) ;
     boolean remove(Integer id) ;
     boolean create(Account_abstract_payment account_abstract_payment) ;

    /**
     * 查询集合 默认查询
     */
    Page<Account_abstract_payment> searchDefault(Account_abstract_paymentSearchContext context) ;

    /**
     * 根据科目查询
     */
     Page<Account_abstract_payment> selectByOdoo_writeoff_account(Integer id) ;

    /**
     * 根据日记账查询
     */
     Page<Account_abstract_payment> selectByOdoo_journal(Integer id) ;

    /**
     * 根据付款方法查询
     */
     Page<Account_abstract_payment> selectByOdoo_payment_method(Integer id) ;

    /**
     * 根据币种查询
     */
     Page<Account_abstract_payment> selectByOdoo_currency(Integer id) ;

    /**
     * 根据银行账户查询
     */
     Page<Account_abstract_payment> selectByOdoo_partner_bank_account(Integer id) ;

    /**
     * 根据联系人查询
     */
     Page<Account_abstract_payment> selectByOdoo_partner(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Account_abstract_payment convert2Domain(cn.ibizlab.odoo.core.client.model.Iaccount_abstract_payment model ,Account_abstract_payment domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Iaccount_abstract_payment convert2Model(Account_abstract_payment domain , cn.ibizlab.odoo.core.client.model.Iaccount_abstract_payment model);

}
